package com.srq.service.impl;

import com.srq.dao.impl.RoleDaoImpl;
import com.srq.pojo.Role;
import com.srq.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    RoleDaoImpl roleDao;

    @Override
    public List<Role> findAll() {
        return roleDao.findAllRole();
    }
}
